const state = {
  list: [],
  page: {}
}
const actions = {
  savePrivilege: ({ commit }, payload) => {
      commit('SAVEPRIVILEGE', payload)
  }
}
const mutations = {
  SAVEPRIVILEGE: (state, payload) => {
      state.list = payload.result
      state.page = {
          size: 10,
          number: payload.number || 1,
          total: payload.resultNum
      }
  }
}
const getters = {
  getList: state => state.list
}

export default {
  state,
  mutations,
  actions,
  getters
}